package com.jiazhong.pojo.moreTable;

import java.util.Date;
import java.util.List;

public class Order {
    private Integer id;
    private Date ordertime;
    private double total;
    private List<User> userList;

    public Order() {
    }

    public Order(Integer id, Date ordertime, double total) {
        this.id = id;
        this.ordertime = ordertime;
        this.total = total;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return ordertime
     */
    public Date getOrdertime() {
        return ordertime;
    }

    /**
     * 设置
     * @param ordertime
     */
    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    /**
     * 获取
     * @return total
     */
    public double getTotal() {
        return total;
    }

    /**
     * 设置
     * @param total
     */
    public void setTotal(double total) {
        this.total = total;
    }

    public String toString() {
        return "Order{id = " + id + ", ordertime = " + ordertime + ", total = " + total + "}";
    }
//    private User user;

}
